package com.zc.dao;

import com.zc.entity.StudentTaskBookOpening;
import com.zc.entity.StudentTaskBookOpeningZq;
import org.apache.ibatis.annotations.Param;

/**
 * @author yuchao
 * 根据学生id 获得信息
 * 插入信息 只添加学生id
 * 通过学生id修改任务书路径
 * 通过学生id修改开题报告路径
 * 重置任务书路径
 * 重置开题报告路径
 * 根据任务书路径查找信息
 * 根据开题报告路径查找信息
 * 根据学生id 修改审核状态(1-->不通过 2--> 通过 )
 *
 */

public interface IStudentTaskBookOpeningZqDao {

	StudentTaskBookOpeningZq showInfoByStudentId(@Param("studentId") int studentId);

	int addInfoByStudentId(StudentTaskBookOpeningZq studentTaskBookOpening);

	int uploadTaskBook(StudentTaskBookOpeningZq studentTaskBookOpening);

	int uploadOpening(@Param("studentId") int studentId, @Param("studentOpeningResport") String studentOpeningResport);
	
	int resetTaskBook(int studentId);
	
	int resetOpening(int studentId);
	
	StudentTaskBookOpening getInfoByTaskBookPath(String studentTaskBook);
	
	StudentTaskBookOpening getInfoByOpeningPath(String studentOpeningResport);

	StudentTaskBookOpeningZq getInfo(int id);

	int passOpening(int studentId);

	int failOpening(@Param("studentId") int studentId,@Param("yj")String yj,@Param("status")Integer stauts);

}
